package com.dlwx.firefighting.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.dlwx.firefighting.R;
import com.dlwx.firefighting.config.Constant;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class AccountActivity extends BaseActivity {

    @BindView(R.id.title_left_one_btn)
    ImageView titleLeftOneBtn;
    @BindView(R.id.title_left_one_tv)
    TextView titleLeftOneTv;
    @BindView(R.id.title_left_two_btn)
    ImageView titleLeftTwoBtn;
    @BindView(R.id.title_left_two_tv)
    TextView titleLeftTwoTv;
    @BindView(R.id.tv_middle_title)
    TextView tvMiddleTitle;
    @BindView(R.id.title_right_one_btn)
    ImageView titleRightOneBtn;
    @BindView(R.id.title_right_two_btn)
    ImageView titleRightTwoBtn;
    @BindView(R.id.title_right_one_tv)
    TextView titleRightOneTv;
    @BindView(R.id.title_right_one_tv2)
    TextView titleRightOneTv2;
    @BindView(R.id.tv_done)
    TextView tvDone;
    @BindView(R.id.tv_edit)
    TextView tvEdit;
    @BindView(R.id.rl_bank)
    RelativeLayout rlBank;
    @BindView(R.id.rl_alipay)
    RelativeLayout rlAlipay;
    @BindView(R.id.rl_weixin)
    RelativeLayout rlWeixin;
    @BindView(R.id.rl_bind_bank)
    RelativeLayout rlBindBank;
    @BindView(R.id.rl_bind_alipay)
    RelativeLayout rlBindAlipay;
    @BindView(R.id.rl_bind_wechat)
    RelativeLayout rlBindWechat;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_account);
        ButterKnife.bind(this);
        initView();
    }

    private void initView() {
        titleLeftOneBtn.setVisibility(View.VISIBLE);
        tvMiddleTitle.setVisibility(View.VISIBLE);
        tvMiddleTitle.setText("选择账户");
    }


    @OnClick({R.id.title_left_one_btn, R.id.tv_done, R.id.tv_edit, R.id.rl_bank, R.id.rl_alipay, R.id.rl_weixin, R.id.rl_bind_bank, R.id.rl_bind_alipay, R.id.rl_bind_wechat})
    public void onViewClicked(View view) {
        Intent i=new Intent(this,AccountBindActivity.class);
        switch (view.getId()) {
            case R.id.title_left_one_btn:
                this.finish();
                break;
            case R.id.tv_done:
                break;
            case R.id.tv_edit:
                break;
            case R.id.rl_bank:
                break;
            case R.id.rl_alipay:
                break;
            case R.id.rl_weixin:
                break;
            case R.id.rl_bind_bank:
                i.putExtra("type", Constant.BANK_TYPE);
                startActivity(i);
                break;
            case R.id.rl_bind_alipay:
                i.putExtra("type", Constant.ALIPAY_TYPE);
                startActivity(i);
                break;
            case R.id.rl_bind_wechat:
                i.putExtra("type", Constant.WECAHT_TYPE);
                startActivity(i);
                break;
        }
    }
}
